package com.example.androidkt.second

import com.example.androidkt.first.Singleton
import com.example.androidkt.sixth.User

class dog {


    var speak: String? = null
    lateinit var say: String

    val bark by lazy { println("") }

    fun call() {
        speak = "小狗叫"
        if (!::say.isInitialized) {
            say = "小狗叫"
        }
        println("speak $speak,say $say")
    }
}


fun main() {
    val d = dog()
    d.call()
}